/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package berkeley.lab6;

/**
 *
 * @author u
 */
/**
 * Implements an exception that shoul be thrown when deposit invalid (e.g. negative) amount
 */
public class BadTransactionException extends Exception {
    
    private int amount; // The invalid amount
    
    public BadTransactionException(int amount) {
        super("Invalid amount: " + amount);
        
        this.amount = amount;
    }
}
